Skip to content

fix(oci): identify signature verification requests - #11244

Merged
mudler merged 1 commit into
masterfrom
bot/issue-6258-oci-user-agent
Jul 31, 2026
Merged

fix(oci): identify signature verification requests#11244
mudler merged 1 commit into
masterfrom
bot/issue-6258-oci-user-agent

Conversation

@localai-org-maint-bot

Copy link
Copy Markdown
Collaborator

Description

This PR fixes the remaining registry request path from #6258. Ordinary OCI pulls already send the version-aware LocalAI User-Agent, but signed backend verification performs separate manifest, referrer, and signature artifact requests that still advertised only go-containerregistry.

The change centralizes the existing version-aware string in internal, preserves oci.UserAgent(), and applies it to every cosignverify.Verifier remote option. A deterministic regression spec exercises a real remote.Head request through a recording transport.

Fixes #6258

Notes for Reviewers

  • go test ./internal ./pkg/oci/cosignverify
  • go test ./pkg/oci/cosignverify ./pkg/oci -ginkgo.focus='User-Agent|UserAgent'\n- go vet ./internal ./pkg/oci/cosignverify\n- The broader go test ./pkg/oci/... baseline includes three live-network specs that receive HTTP 403 from Docker Hub/Ollama in this environment; the affected packages and deterministic specs pass.\n\n**Signed commits**\n- [ ] Yes, I signed my commits.\n- [x] Documentation updated (docs/content/) for user-facing changes, or not applicable

Signed backend verification performs separate registry requests for manifests and referrers. Reuse LocalAI's version-aware User-Agent there so the full install flow is attributable to LocalAI.

Assisted-by: Codex:gpt-5
@mudler
mudler merged commit f01589d into master Jul 31, 2026
69 checks passed
@mudler
mudler deleted the bot/issue-6258-oci-user-agent branch July 31, 2026 07:20
@localai-bot localai-bot added the bug Something isn't working label Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pull models from OCI registries with a specific UserAgent

3 participants